<?php
class CreateTripForm extends Zend_Form {
	
	public function init() {
		$this->setMethod("POST");
		
		$element = new Zend_Form_Element_Text("title");
		$element->setLabel("Trip Title:");
		$element->setRequired(true);
		$element->addValidator("NotEmpty");
		$this->addElement($element);
		
		$element = new Zend_Form_Element_Textarea("description");
		$element->setLabel("Description:");
		$element->setAttrib('rows',4);
		$this->addElement($element);
		
		$element = new Zend_Form_Element_Submit("Next");
		$this->addElement($element);
	}
}
?>